package com.binlog.core.handler;


import com.binlog.module.BinLogItem;

/**
 * Common event listener handle
 *
 * @description: 实现这个类处理自己的业务代码
 * @author: cyj
 * @date 2022 -05-13 16:01:37
 *
 *
 */
public interface CommonEventListenerHandler {

    /**
     * Gets table name *
     *
     * @return the table name
     */
    String getTableName();

    /**
     * 获取datesource
     * @return
     */
    String getDatesource();

    /**
     * Insert handle
     */
    void insertHandle(BinLogItem binLogItem);

    /**
     * Update handle
     */
    void updateHandle(BinLogItem binLogItem);

    /**
     * Delete handle
     */
    void deleteHandle(BinLogItem binLogItem);

}
